import request from '@/utils/request'

// 获取电箱列表
export function getelectricityBoxList (query) {
  return request({
    url: '/business/electricityBox/list',
    method: 'get',
    params: query
  })
}
// 获取电箱详情
export function getelectricityBoxChildren (id) {
  return request({
    url: '/business/electricityBox/' + id,
    method: 'get'
  })
}
// 编辑电箱
export function UpdateelectricityBox (data) {
  return request({
    url: '/business/electricityBox',
    method: 'put',
    data: data
  })
}
// 新增电箱
export function CreatedelectricityBox (data) {
  return request({
    url: '/business/electricityBox',
    method: 'post',
    data: data
  })
}
// 修改上下线状态
export function UpdateBoxStatus (data) {
  return request({
    url: '/business/electricityBox/editStatus',
    method: 'put',
    data: data
  })
}